/**
 * 
 */
package com.cqan.system.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cqan.entity.pk.IdEntity;


/**
 * @Description 系统配置
 * @author slaton
 * @date 2012-5-11上午9:51:39
 *
 */
@Entity
//表名与类名不相同时重新定义表名.
@SuppressWarnings("serial")
@Table(name = "DMS_SYSTEM")
//默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SystemEntity extends IdEntity {

	private Date createTime;
	
	private String description;
	
	private boolean enabled;
	
	private String key;
	
	private String value;

	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	@Column(name="DESCREPTION")
	public String getDescription() {
		return description;
	}

	@Column(name="KEY_WORD")
	public String getKey() {
		return key;
	}

	@Column(name="VALUE")
	public String getValue() {
		return value;
	}
	@Column(name="ENABELD")
	public boolean isEnabled() {
		return enabled;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	
}
